package com.acme.bankapp.domain.bank;

public class SavingAccount extends AbstractAccount {
    public SavingAccount(double amount) {
        super(amount);
    }

    @Override
    public void withdraw(double amount) {
        if (amount <= balance)
            balance -= amount;
    }

    @Override
    public double maximumAmountToWithdraw() {
        return balance;
    }
}
